//
//  PeopleModel.swift
//  XQDBDemo
//
//  Created by WXQ on 2021/3/10.
//

import Foundation
import XQWCDB
import WCDBSwift

class PeopleModel: WCDBSwift.TableCodable, XQWCDBModelConvenientProtocol {
    
    static var xq_table: String = "people"
    
    var homeId: String?
    
    var pId = UUID().uuidString
    
    var name: String?

    enum CodingKeys: String, CodingTableKey {
        typealias Root = PeopleModel
        
        case homeId
        case pId
        case name

        static let objectRelationalMapping = TableBinding(CodingKeys.self)

    }
    
}
